# encoding: utf-8
"""
@author: yangwei
@contact: yangchen211@126.com
@time: 2021/8/22 3:02 下午
@file: calendar.py
@desc: 
"""
from service.api.feishu_api import FeiShuAPI


class Calendar(FeiShuAPI):

    def get_token(self):
        return self.token

    def set_token(self):
        self.token = self.token

    @classmethod
    def create(cls, *args):
        return Calendar()

    # @classmethod
    def list(self, page_size=500, *args):
        url = 'https://open.feishu.cn/open-apis/calendar/v4/calendars'
        token = self.feishu.get_token()

        j = self.request(
            url=url,
            method='get'
        )

        return j

    def delete(self, *args):
        pass

    def update(self, *args):
        pass

    @classmethod
    def get(cls, *args):
        pass

    def subscribe(self, *args):
        pass

    def unsubscribe(self, *args):
        pass

    @classmethod
    def delete_all(cls, *args):
        pass